package com.ych.factoryMethod;

/**
 * Created by Administrator on 2017/6/26.
 */
public class Main {
    public static void main(String[] args) {
        IWorkFactory studentWrokFactory = new StudentWrokFactory();
        studentWrokFactory.getWork().doWork();
        IWorkFactory teacherWorkFactory = new TeacherWorkFactory();
        teacherWorkFactory.getWork().doWork();
    }
}
